﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:hubTile="clr-namespace:HubTileControl;assembly=HubTileControl"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    xmlns:HubTileControl="clr-namespace:HubTileControl;assembly=HubTileControl"
    x:Class="SilverlightTest.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="800" d:DesignWidth="1024">
	<UserControl.Resources>
		<DataTemplate x:Key="DataTemplateList">
			<Grid>
				<hubTile:HubTile Margin="0,0,10,10" x:Name="Tile" Source="{Binding Image}"
            Title="{Binding Title}"
            Notification="{Binding Message}"
            DisplayNotification="True"
            GroupTag="{Binding Message}" Message="{Binding Message}" Background="#FF1BA1E2"/>
			</Grid>
		</DataTemplate>
		<ItemsPanelTemplate x:Key="ItemsPanelTemplate">
			<toolkit:WrapPanel/>
			
		</ItemsPanelTemplate>
	</UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource SampleDataSource}}">
        <ListBox Margin="42" ItemTemplate="{StaticResource DataTemplateList}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsPanel="{StaticResource ItemsPanelTemplate}" ItemsSource="{Binding Collection}"/>
    	<!--<Microsoft_Phone_Controls:HubTile x:Name="Tile" Source="/SilverlightTest;component/Images/Koala.jpg"
            Title="Koala"
            Notification="Ceci est mon petit Koala"
            DisplayNotification="True"
            GroupTag="Food"/>-->
    </Grid>
</UserControl>
